﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _03_泛型类的功能
{
    interface IComparableTO<T>
    {
        string CompareTo(T other);
    }
    public class Person : IComparableTO<Person>
    {

        public string CompareTo(Person other)
        {
            return this.Name;
        }
        public string Name { get;private set; }
    }
}
